﻿using Microsoft.SemanticKernel;
using System.ComponentModel;

namespace SemanticKernalDemo.Terminal.Plugins;

public class EmailPlugin
{
    [KernelFunction("send_email")]
    [Description("Sends an email to a recipient.")]
    public Task SendEmailAsync(Kernel kernel, List<string> recipientEmails, string subject, string body)
    {
        // Add logic to send an email using the recipientEmails, subject, and body
        // For now, we'll just print out a success message to the console
        Console.WriteLine("Email sent!");

        return Task.CompletedTask;
    }
}
